﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Xww.WindowsForm.Controls {
    public class ComboBoxEx : ComboBox {
        public ComboBoxEx()
            : base() {
            Size = new System.Drawing.Size(18, 21);
        }

        


        #region IMessageFilter 成员

        protected override void WndProc(ref Message m) {
            if (m.Msg == WM_LBUTTONDOWN || m.Msg == WM_LBUTTONUP) {
                m.Msg = m.Msg + 3;
            }
            base.WndProc(ref m);
        }

        #endregion
        const int WM_LBUTTONDOWN = 0x201;
        const int WM_LBUTTONUP = 0x202;
        const int WM_RBUTTONDOWN = 0x204;
        const int WM_RBUTTONUP = 0x205;
    }
}
